package data;

public class Goods extends Record{

	private static final long serialVersionUID = 1L;
	
	private String name;
	
	private double price;
	public Goods(String ID,String name,double price){
		this.ID=ID;
		this.name=name;
		this.price=price;
	}
	public String getGoodsInfo(){
		return ID+","+name+","+price;
	}
	public String getName() {
		return name;
	}
//	public void setName(String name) {
//		this.name = name;
//	}
	public double getPrice() {
		return price;
	}
//	public void setPrice(double price) {
//		this.price = price;
//	}
}
